SftTree/OCX 7.0

SftTree.NextSibling Property

Softel vdm, Inc.

Returns the index of an item's next sibling item.

Deprecated - Provided for compatibility with earlier versions only - Use Item.NextSibling instead

Syntax       

Get

VB.NET

SiblingIndex = object.get_NextSibling(ByVal ItemIndex As Integer)  As Integer

VB

SiblingIndex = object.NextSibling(ByVal ItemIndex As Long)  As Long

C#.NET

int SiblingIndex = object.get_NextSibling(int ItemIndex);

VC++

long SiblingIndex = object->NextSibling[long ItemIndex];
long SiblingIndex = object->GetNextSibling(long ItemIndex);

C

HRESULT object->get_NextSibling(long ItemIndex, long* SiblingIndex);

Delphi

SiblingIndex := object.NextSibling[ItemIndex : Integer]   : Integer;

object

A SftTree object.

ItemIndex

The zero-based index of the item whose next sibling item is to be returned.

SiblingIndex

Returns the index of the item's next sibling item.  -1 is returned if the item doesn't have a next sibling.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Item.NextSibling instead

The NextSibling property returns the index of an item's next sibling item.

The next sibling of item ItemIndex is found by scanning towards the end of the tree control and locating an item on the same level (Item.Level property) as item ItemIndex without encountering a parent item.

The Item.PrevSibling property can be used to retrieve an item's previous sibling.  The Item.FirstSibling and Item.LastSibling properties can be used to retrieve an item's first or last sibling.

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com